// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using System;
using System.Linq;
using Elastic.Clients.Elasticsearch.Serialization;

namespace Elastic.Clients.Elasticsearch.QueryDsl;

[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Json.IDistanceFeatureQueryConverter))]
public partial interface IDistanceFeatureQuery
{
	public string Type { get; }
}

public readonly partial struct IDistanceFeatureQueryFactory<TDocument>
{
	public Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery Date(Elastic.Clients.Elasticsearch.QueryDsl.DateDistanceFeatureQuery value)
	{
		return value;
	}

	public Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery Date(System.Action<Elastic.Clients.Elasticsearch.QueryDsl.DateDistanceFeatureQueryDescriptor<TDocument>> action)
	{
		return Elastic.Clients.Elasticsearch.QueryDsl.DateDistanceFeatureQueryDescriptor<TDocument>.Build(action);
	}

	public Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery Geo(Elastic.Clients.Elasticsearch.QueryDsl.GeoDistanceFeatureQuery value)
	{
		return value;
	}

	public Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery Geo(System.Action<Elastic.Clients.Elasticsearch.QueryDsl.GeoDistanceFeatureQueryDescriptor<TDocument>> action)
	{
		return Elastic.Clients.Elasticsearch.QueryDsl.GeoDistanceFeatureQueryDescriptor<TDocument>.Build(action);
	}

	public Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery Untyped(Elastic.Clients.Elasticsearch.QueryDsl.UntypedDistanceFeatureQuery value)
	{
		return value;
	}

	public Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery Untyped(System.Action<Elastic.Clients.Elasticsearch.QueryDsl.UntypedDistanceFeatureQueryDescriptor<TDocument>> action)
	{
		return Elastic.Clients.Elasticsearch.QueryDsl.UntypedDistanceFeatureQueryDescriptor<TDocument>.Build(action);
	}

	[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
	internal static Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery Build(System.Func<Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQueryFactory<TDocument>, Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery> action)
	{
		var builder = new Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQueryFactory<TDocument>();
		return action.Invoke(builder);
	}
}

public readonly partial struct IDistanceFeatureQueryFactory
{
	public Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery Date(Elastic.Clients.Elasticsearch.QueryDsl.DateDistanceFeatureQuery value)
	{
		return value;
	}

	public Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery Date(System.Action<Elastic.Clients.Elasticsearch.QueryDsl.DateDistanceFeatureQueryDescriptor> action)
	{
		return Elastic.Clients.Elasticsearch.QueryDsl.DateDistanceFeatureQueryDescriptor.Build(action);
	}

	public Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery Date<T>(System.Action<Elastic.Clients.Elasticsearch.QueryDsl.DateDistanceFeatureQueryDescriptor<T>> action)
	{
		return Elastic.Clients.Elasticsearch.QueryDsl.DateDistanceFeatureQueryDescriptor<T>.Build(action);
	}

	public Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery Geo(Elastic.Clients.Elasticsearch.QueryDsl.GeoDistanceFeatureQuery value)
	{
		return value;
	}

	public Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery Geo(System.Action<Elastic.Clients.Elasticsearch.QueryDsl.GeoDistanceFeatureQueryDescriptor> action)
	{
		return Elastic.Clients.Elasticsearch.QueryDsl.GeoDistanceFeatureQueryDescriptor.Build(action);
	}

	public Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery Geo<T>(System.Action<Elastic.Clients.Elasticsearch.QueryDsl.GeoDistanceFeatureQueryDescriptor<T>> action)
	{
		return Elastic.Clients.Elasticsearch.QueryDsl.GeoDistanceFeatureQueryDescriptor<T>.Build(action);
	}

	public Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery Untyped(Elastic.Clients.Elasticsearch.QueryDsl.UntypedDistanceFeatureQuery value)
	{
		return value;
	}

	public Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery Untyped(System.Action<Elastic.Clients.Elasticsearch.QueryDsl.UntypedDistanceFeatureQueryDescriptor> action)
	{
		return Elastic.Clients.Elasticsearch.QueryDsl.UntypedDistanceFeatureQueryDescriptor.Build(action);
	}

	public Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery Untyped<T>(System.Action<Elastic.Clients.Elasticsearch.QueryDsl.UntypedDistanceFeatureQueryDescriptor<T>> action)
	{
		return Elastic.Clients.Elasticsearch.QueryDsl.UntypedDistanceFeatureQueryDescriptor<T>.Build(action);
	}

	[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
	internal static Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery Build(System.Func<Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQueryFactory, Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQuery> action)
	{
		var builder = new Elastic.Clients.Elasticsearch.QueryDsl.IDistanceFeatureQueryFactory();
		return action.Invoke(builder);
	}
}